package com.lanou3g.code0408.constructor;

/**
 * Created by dllo on 18/4/8.
 */
public class Main {
    public static void main(String[] args) {
        Dog dog = new Dog("毛毛");
        Dog dog1 = new Dog();
        dog.setAge(7);
        Cat cat = new Cat("毛豆");
        System.out.println(cat.getName());
    }
}
